cmake_minimum_required(VERSION 3.5)
project(preferences_stm32_lib)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/src
)

# 查找所有源文件
file(GLOB_RECURSE SOURCE_FILES
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
)

add_library(preferences_stm32_lib STATIC ${SOURCE_FILES})
